import request from '@/utils/request'

// 查询扫码报警临时信息列表
export function listQrcode_information(query) {
  return request({
    url: '/callPolice/manager/qrcode_information/list',
    method: 'get',
    params: query
  })
}

// 查询扫码报警临时信息详细
export function getQrcode_information(id) {
  return request({
    url: '/callPolice/manager/qrcode_information/' + id,
    method: 'get'
  })
}

// 新增扫码报警临时信息
export function addQrcode_information(data) {
  return request({
    url: '/callPolice/manager/qrcode_information',
    method: 'post',
    data: data
  })
}

// 修改扫码报警临时信息
export function updateQrcode_information(data) {
  return request({
    url: '/callPolice/manager/qrcode_information',
    method: 'put',
    data: data
  })
}

// 删除扫码报警临时信息
export function delQrcode_information(id) {
  return request({
    url: '/callPolice/manager/qrcode_information/' + id,
    method: 'delete'
  })
}

// 导出扫码报警临时信息
export function exportQrcode_information(query) {
  return request({
    url: '/callPolice/manager/qrcode_information/export',
    method: 'get',
    params: query
  })
}

// 查询二维码
export function listByTemporaryInformationId(query) {
  return request({
    url: '/callPolice/manager/qrcode/listByTemporaryInformationId',
    method: 'get',
    params: query
  })
}

// 添加二维码
export function insertCallPoliceAndRelevance(data) {
  return request({
    url: '/callPolice/manager/qrcode_information/insertCallPoliceAndRelevance',
    method: 'post',
    data: data
  })
}
// 删除二维码
export function removeCallPolice(ids) {
  return request({
    url: '/callPolice/manager/qrcode_information/removeCallPolice/' + ids,
    method: 'post',
  })
}